package week9.Q3;

import javax.naming.Name;

public class CarShop {
   private double money;


   public void sellCar(Car car){
       System.out.println("卖出一辆"+car.getName()+"，价格："+car.getPrice()+"元");
       money+=car.getPrice();
   }
   public double getMoney(){
       return money;
   }
}
